package edu.csumb.itcd.teammario;

import java.awt.Color;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Point;
import java.awt.Rectangle;

public class Money {

	private Point position;
	private int value;
	private boolean isVisible;
	private boolean collected;
	
	public Money(Enemy enemy)
	{
		position = (Point)enemy.getEnemyPosition();
		value = enemy.getMoney();
		collected = false;
	}
	
	public void paintMoney(Graphics g)
	{
		g.setColor(Color.green);
		g.setFont(new Font("Comic Sans MS", Font.BOLD, 15));
		g.drawString("$", position.x, position.y);
	}
	
	public boolean isVisible() {
		return isVisible;
	}

	public void setVisible(boolean isVisible) {
		this.isVisible = isVisible;
	}

	public Point getPosition() {
		return position;
	}

	public int getValue() {
		return value;
	}

	public void setCollected(boolean collected) {
		this.collected = collected;
	}

	public boolean isCollected() {
		return collected;
	}

	public Rectangle getMoneyImage()
	{
		return new Rectangle(position.x, position.y - 15, 8, 17);
	}
	
}
